package com.open.capacity.workflow3.service;

import com.open.capacity.workflow3.entity.NwfTask;

import com.open.capacity.commons.PageResult;
import com.open.capacity.workflow3.entity.NwfTaskLog;
import com.open.capacity.workflow3.entity.NwfTaskRelation;

import java.util.Map;
import java.util.List;

/**
 * @author
 * @email
 * @date 2023-11-02 21:21:15
 */
public interface NwfTaskService {

    List<NwfTask> getALLTaskList(String processId);

    List<NwfTask> getUnFinishTaskList(String processId);

    List<NwfTask> getUnFinishTaskList();

    boolean isRevokeTask(String processId, String preNodeId);

    NwfTask getEntity(String keyValue);

    NwfTaskLog getLogEntityByNodeId(String nodeId, String prcoessId);

    List<NwfTaskLog> getLogList(String processId);

    NwfTaskLog getLogEntity(String taskId, String userId);

    List<String> getCurrentNodeIds(String processId);

    NwfTask getEntityByNodeId(String nodeId, String processId);

    NwfTask getEntityByNodeId2(String nodeId, String processId);

    List<NwfTaskRelation> getTaskUserList(String taskId);

    void save(List<NwfTaskRelation> list, List<String> taskList, NwfTaskLog nWFTaskLogEntity);
}

